package javase.chixing.thread_producer_and_consumer_model;

class ProducerAndConsumerModelDemo {
    public static void main(String[] args) {
        Shop shop = new Shop();
        Producer producer = new Producer(shop);
        producer.setName("生产者");
        Consumer consumer = new Consumer(shop);
        consumer.setName("消费者");

        producer.start();
        consumer.start();
    }
}
